package memory.GUI;

import javax.swing.*;

/**
 *
 * @author Scott Robinson
 */
public class Image extends JLabel {
    private final String image;

    public Image (int i) {
        super();
        image = "pics\\" + Integer.toString(i) + ".jpg";
        setIcon(new ImageIcon(getClass().getResource(image)));
        setHorizontalAlignment(JLabel.CENTER);
        setVerticalAlignment(JLabel.CENTER);
    }

}
